#include "systemstatusinfo.h"
#include "remotedef.h"
#include <QVariant>

SystemStatusInfo::SystemStatusInfo()
    :BaseResp()
{
    runtime = "";
    resource = "";
    disk_total = "";
    disk_used = "";
}

void SystemStatusInfo::unserialize(QString json)
{
    BaseResp::unserialize(json);
    if (m_json.isValid())
    {
        runtime = m_json.value(KEY_RUNTIME).toString();
        resource = m_json.value(KEY_RESOURCE).toString();
        disk_total = m_json.value(KEY_DISK_TOTAL).toString();
        disk_used = m_json.value(KEY_DISK_USED).toString();
    }
}

QString SystemStatusInfo::getRuntime() const
{
    return runtime;
}

QString SystemStatusInfo::getResource() const
{
    return resource;
}

QString SystemStatusInfo::getDiskTotal() const
{
    return disk_total;
}

QString SystemStatusInfo::getDiskUsed() const
{
    return disk_used;
}




